# -*- coding:utf-8 -*-
"""
@author: 
@file: encrypt.py
@time: 2023/12/12 19:43
@desc: 
"""
import hashlib
from django.conf import settings


def md5(data_string):
    obj = hashlib.md5(settings.SECRET_KEY.encode('utf-8'))
    obj.update(data_string.encode('utf-8'))
    return obj.hexdigest()
